/**
 * 
 */
package com.tw.trips.dao;

import org.neo4j.helpers.collection.ClosableIterable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.neo4j.support.Neo4jTemplate;
import org.springframework.stereotype.Repository;

import com.tw.trips.domain.Trip;

/**
 * @author M1005264
 *
 */
@Repository
public class TripsDAO {

	@Autowired
	Neo4jTemplate template;
	
	public ClosableIterable<Trip> getAllTrips(){
		
		return template.findAll(Trip.class);
	}
}
